package com.home.free.manager.impl;

import com.home.free.dao.UserDao;
import com.home.free.entity.User;
import com.home.free.manager.UserManager;
import com.home.free.vo.user.UserQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Title: com.home.free.manager.impl<br>
 * Description: <br>
 * Copyright: Copyright (c) 2015<br>
 * Company: 北京云杉世界信息技术有限公司<br>
 *
 * @author gaotianjie
 * @date 2019/3/19
 */
@Component
public class UserManagerImpl implements UserManager {
    @Autowired
    UserDao userDao;

    @Override
    public User selectUserById(Long id) {
        return userDao.selectUserById(id);
    }

    @Override
    public List<User> selectAllUserList() {
        return userDao.selectAllUserList();
    }

    @Override
    public List<User> pageUserList(UserQuery userQuery) {
        return userDao.pageUserList(userQuery);
    }

    @Override
    public Integer pageUserCount(UserQuery userQuery) {
        return userDao.pageUserCount(userQuery);
    }
}
